<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/common/vue/vue.js"></script>
</head>
<body>
<div id="app">
<cpn></cpn>
</div>
<!--语法糖-->
<script>
    Vue.component('cpn',{
        template:`
          <h2>语法糖写法</h2> `
    })
    new Vue({
        el:'#app'
    })
</script>

</body>
</html>